from engonline.models import TextArtefact
from .text_identifiers import FOOTER

def footer(request):
    try:
        footer = TextArtefact.objects.get(name=FOOTER)
        html = footer.html
    except Exception, e:
        html = "ERROR: Unable to fetch footer."

    return {
        'footer': html,
    }
